package demo3;

public class Test {
    public static void main(String[] args) {
        Computer computer = new Computer();
        computer.open();
        computer.useUsbDevice(new keyBoard());
        computer.useUsbDevice(new Mouse());
        computer.close();

    }
}
